<?php
if (strstr($_SERVER['HTTP_HOST'], 'localhost'))
{
    //db settings
    $host     = "localhost";
    $user     = "root";
    $pass     = "";
    mysql_connect  ( $host, $user, $pass ) or die ( "EROARE LA CONEXIUNE: ".mysql_error() );
    mysql_select_db("test-db");
}
else
{
    //db settings
    $host     = "localhost";
    $user     = "reporter";
    $pass     = "2702reporterdeocazie2007";
    mysql_connect  ( $host, $user, $pass ) or die ( "EROARE LA CONEXIUNE: ".mysql_error() );
    mysql_select_db("test-db");
}
?>